home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_01_04 / 1n04056a < prev    next >
Text File  |  1990-07-17  |  517b  |  23 lines

  1.  
  2.       init_menu();
  3.       while (choice != EXIT_PROGRAM)
  4.       {
  5.             choice = INVALID;
  6.             key = Input(&x, &y);
  7.             choice = disp_menu(key, x, y);
  8.             key = 0;
  9.             switch (choice)
  10.             {
  11.                  case FIRST_CHOICE:
  12.                        execute_first();
  13.                        break;
  14.  
  15.                  case SECOND_CHOICE:
  16.                        execute_second();
  17.                        break;
  18.  
  19.                  etc.
  20.             }
  21.       }
  22.  
  23.